package com.eboss2.sbs.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2018/2/26 0026.
 */

public class CommentList implements Serializable {
    private float score;
    private String comment_date;
    private String comment_content;
    private String member_icon;
    private String comment_imagepath0;
    private String comment_imagepath1;
    private String comment_imagepath2;
    private String comment_imagepath3;
    private String comment_imagepath4;

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }

    public String getComment_date() {
        return comment_date;
    }

    public void setComment_date(String comment_date) {
        this.comment_date = comment_date;
    }

    public String getComment_content() {
        return comment_content;
    }

    public void setComment_content(String comment_content) {
        this.comment_content = comment_content;
    }

    public String getMember_icon() {
        return member_icon;
    }

    public void setMember_icon(String member_icon) {
        this.member_icon = member_icon;
    }

    public String getComment_imagepath0() {
        return comment_imagepath0;
    }

    public void setComment_imagepath0(String comment_imagepath0) {
        this.comment_imagepath0 = comment_imagepath0;
    }

    public String getComment_imagepath1() {
        return comment_imagepath1;
    }

    public void setComment_imagepath1(String comment_imagepath1) {
        this.comment_imagepath1 = comment_imagepath1;
    }

    public String getComment_imagepath2() {
        return comment_imagepath2;
    }

    public void setComment_imagepath2(String comment_imagepath2) {
        this.comment_imagepath2 = comment_imagepath2;
    }

    public String getComment_imagepath3() {
        return comment_imagepath3;
    }

    public void setComment_imagepath3(String comment_imagepath3) {
        this.comment_imagepath3 = comment_imagepath3;
    }

    public String getComment_imagepath4() {
        return comment_imagepath4;
    }

    public void setComment_imagepath4(String comment_imagepath4) {
        this.comment_imagepath4 = comment_imagepath4;
    }

    public List<String> getImgList() {
        List<String> list = new ArrayList<String>();
        if (comment_imagepath1 != null && comment_imagepath1.length() > 0) {
            list.add(comment_imagepath1);
        }
        if (comment_imagepath2 != null && comment_imagepath2.length() > 0) {
            list.add(comment_imagepath2);
        }
        if (comment_imagepath3 != null && comment_imagepath3.length() > 0) {
            list.add(comment_imagepath3);
        }
        if (comment_imagepath4 != null && comment_imagepath4.length() > 0) {
            list.add(comment_imagepath4);
        }
        if (comment_imagepath0 != null && comment_imagepath0.length() > 0) {
            list.add(comment_imagepath0);
        }

        return list;
    }
}
